package jm.demo.aop.aspectj;

public class AspectjDemo {
    public static void main(String[] argv) {
        System.err.println("Calling method with handler");
        new AspectjDemo().run2();

        System.err.println("Calling method that throws exception");
        new AspectjDemo().run();
    }

    public void run() {
        throw new RuntimeException();
    }

    public void run2() {
        try {
            throw new RuntimeException();
        } catch (RuntimeException re) {
        }
    }
}
